package cn.dnui_yxk801.dnuifood_16110100801.iface;

import cn.dnui_yxk801.dnuifood_16110100801.listener.OnRetrofitListener;

public interface UserIface {
    void login(String username,
               String userpass,
               OnRetrofitListener listener);

    void register(String username,
                  String userpass,
                  String mobilenum,
                  String address,
                  String comment,
                  OnRetrofitListener listener);
    void userCollectFood(String userid,String foodid,OnRetrofitListener listener);
    void userCollectShop(String userid,String shopid,OnRetrofitListener listener);
    void getAllUserCollection(String user_id,String flag,OnRetrofitListener listener);
    void getUserById(String userid,OnRetrofitListener listener);
    void updateUserById(String userid,String username,String userpass,String mobilenum,String address,OnRetrofitListener listener);
    void getAllOrdersByUser(String userid,OnRetrofitListener listener);
    void getAllCommentsByUser(String userid,OnRetrofitListener listener);
    void updateComment(String item_id,String content,OnRetrofitListener listener);
    void insertComment(String item_id,String content,OnRetrofitListener listener);
    void deleteComment(String item_id,OnRetrofitListener listener);
}
